package com.moyun.finance.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 账户实体类
 */
@Entity
@Data
public class Account {
    @Id
    private String id;

    private String companyId;//关联公司id

    private String accountName;//账户名称

    private String accountType;//账户类型 0:现金 1:储蓄 2:信用

    private double initialMoney;//初始金额

    private double outMoney;//流出总金额

    private double inMoney;//流入总金额

    private double nowMoney;//当前金额

    private int state;//是否启用 0:开启默认  1:停用

    private String remark;//备注
}